﻿@model Irandeb4.Models.ChangePasswordModel

@{
    ViewBag.Title = "Change Password";
}

<h2>Cambiar Password</h2>

<p>
    Nuevas contraseñas deben tener un mínimo de @Membership.MinRequiredPasswordLength caracteres de longitud
</p>

<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>

@using (Html.BeginForm()) {
    @Html.ValidationSummary(true, "Cambiar la contraseña no tuvo éxito. Por favor, corrija los errores y vuelva a intentarlo.")
    <div>
        <fieldset>
            <legend>Informacion de la cuenta</legend>
            <br/>
            <table>
                <tr>
                    <td class="editor-label">
                    @Html.LabelFor(m => m.OldPassword)
                    </td>
                    <td class="editor-field">
                        @Html.PasswordFor(m => m.OldPassword)
                        @Html.ValidationMessageFor(m => m.OldPassword)
                    </td>
                </tr>
                <tr>
                    <td class="editor-label">
                        @Html.LabelFor(m => m.NewPassword)
                    </td>
                    <td class="editor-field">
                        @Html.PasswordFor(m => m.NewPassword)
                        @Html.ValidationMessageFor(m => m.NewPassword)
                    </td>
                </tr>
                <tr>
                    <td class="editor-label">
                        @Html.LabelFor(m => m.ConfirmPassword)
                    </td>
                    <td class="editor-field">
                        @Html.PasswordFor(m => m.ConfirmPassword)
                        @Html.ValidationMessageFor(m => m.ConfirmPassword)
                    </td>
                </tr>
                <tr>
                    <td align="right" colspan="2">
                        <input type="submit" value="cambiar Password" />
                    </td>
                </tr>
            </table>
        </fieldset>
    </div>
}
